DemoMaking for begginerz!

Part I

Poisoned Brain

Intro ...

Once upon a time I found myself sitting and reading Hugi, and here's what I read: a lot of people are complaining about absence of tutorials for BEGIIINNERS! And the most interesting thing is that I completely agree with this. There are a lot of articles on subjects like How to write a demo from scratch etc... But! There is a big white spot in such articles! The authors are assuming that the reader is already familiar with some of the methods of demowriting... But generally such articles aren't read by gurus, but by real novices!

Who does new coder appear? One hears the word "scene", finds a couple of demos, watches to them, and ... Whooops! He wants to do the same! He starts to search in internet, fido, etc in the quest for articles about DemoMaking and he finds aforementioned articles ... And! The demoscene closes in front of him, because he cannot catch the sense of an article! It's what I will try to correct.

So, this was just lyrical digression ... Let's face more actual questions! This article will be a kind of introductory article. Here I will tell you about what utilites we are going to use and what we try to code! In the second part we will try to code a simple graphical demo!

As I already told, these articles are for BEGINNERS, but still not for LAMO! Under the word "BEGINNER" I understand someone who is a bit familiar with C++, but if you are familiar with C/Pascal/whatever, this will be enough! The main thing is YOUR IMAGINATION! So ... Let's start!

Installing DJGPP!

- Daddy I've just installed Linux, What now?
- Pray!

OK Dudes! You of course have a question: "What is DJGPP? What is this shit about?" We will use exactly DJGPP for compilation of our works, because it is a good compiler, and everyone could download it for free! If you still don't have this wonderful tool, then go to http://www.delorie.com/djgpp/, there enter "Zip Picker" and do your wet job! Doesn't matter what options will you choose, the most important is that there will be C and C++. Another way is to go at "Get DJGPP" and download these files:

v2/readme.1st Installation instructions 14 kb
v2/djdev202.zip DJGPP Basic Development Kit 1.4 mb
v2gnu/bnu281b.zip Basic assember, linker 1.8 mb
v2gnu/gcc281b.zip Basic GCC compiler 1.3 mb
v2gnu/gpp281b.zip C++ compiler 1.2 mb
v2gnu/lgp2811b.zip C++ libraries 583 kb
v2gnu/mak377b.zip Make (processes makefiles) 242 kb

This will be ~ 7MB... But... It is worth this, trust me!

For installation unzip all zips in one folder and create the file DJSET.BAT:

   @ECHO OFF 
   SET PATH=C:\PROG\DJGPP\BIN;%PATH% 
   SET DJGPP=C:\PROG\DJGPP\DJGPP.ENV 

These lines assume that you have unpacked the files into C:\PROG\DJGPP. It's very easy to use DJGPP... Open a DOS window, run DJSET.BAT and edit the file TEST.CPP with your favourite text editor:

 #include <iostream.h> 

 int main() 
 { 
            cout << "My First Prog." << endl; 
     return 0; 
 } 

After this type:

gcc test.cpp -o test.exe -lstdcxx 

It's all! Run test.exe and enjoy!

Whuuuh! I need to smoke!

Poisoned Brain